<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class WithdrawValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule =   [
        'bank_id'  => 'require',
        'cash_price'   => 'require',
    ];

    protected $message  =   [
        'bank_id.require' => '必须选择银行卡',
        'cash_price.require' => '提现金额必须',
    ];
}
